package com.remote;

import com.remote.commands.LightOnCommand;
import com.remote.facilities.Light;
import com.remote.output.SimpleRemoteControl;

/**
 * @author SnowmanAndBee
 * @version <version>
 * <description>
 * @date 2022/4/5 - 11:32
 */
public class RemoteControlTest {
    public static void main(String[] args) {
        SimpleRemoteControl remote = new SimpleRemoteControl();
        Light light = new Light();
        LightOnCommand lightOn = new LightOnCommand(light);

        remote.setCommand(lightOn);
        remote.buttonWasPressed();
    }
}
